package org.opens.entity;

import lombok.Data;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

@Data
public class HelloWorld implements InitializingBean, DisposableBean {

    private String message;

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("HelloWorld初始化完成");
    }

    @Override
    public void destroy() throws Exception {
        System.out.println("HelloWorld销毁");
    }
}
